-- GENERATED SPELL FOR [Bloodscalp Hunter] --


function spell0_595(pUnit, Event) --@Enrage,Self--
pUnit:FullCastSpellOnTarget(8599,pUnit)
pUnit:RegisterEvent('Sorts_595', 676, 1)
end

function spell1_595(pUnit, Event) --@Net,n/a--
pUnit:FullCastSpellOnTarget(6533,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_595', 2260, 1)
end

function spell2_595(pUnit, Event) --@Throw,n/a--
pUnit:FullCastSpellOnTarget(10277,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_595', 500, 1)
end

function Sorts_595(pUnit, Event)
local choix_sorts_595 = math.random(0, 2)
if choix_sorts_595 == 0 then
pUnit:RegisterEvent('spell0_595', 1, 1)
end
if choix_sorts_595 == 1 then
pUnit:RegisterEvent('spell1_595', 1, 1)
end
if choix_sorts_595 == 2 then
pUnit:RegisterEvent('spell2_595', 1, 1)
end
end

function mob595_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_595', math.random(1500, 3000), 1)
end

function mob595_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob595_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob595_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(595, 1, 'mob595_Action')
RegisterUnitEvent(595, 2, 'mob595_Leave')
RegisterUnitEvent(595, 3, 'mob595_Kill')
RegisterUnitEvent(595, 4, 'mob595_Die')
